var g_srv = "/gw/servlet/Srv";


function  bizSelectOrg(multi,orgType)
{
    if(multi)
    {
        viewWinEx(g_srv+"?action_code=selectOrg&multi=true&s_Type="+orgType,800,600,100,64);
    }
    else 
    {
        viewWinEx(g_srv+"?action_code=selectOrg&s_Type="+orgType,800,600,100,64);
    }           
}

//选择供应商
function bizSelectProvider(multi){
    if(multi){
        viewWinEx(g_srv + "?action_code=selectProvider&multi=true", 800, 600, 100, 64);
    }
    else{
        viewWinEx(g_srv + "?action_code=selectProvider", 800, 600, 100, 64);
    }
}

//选择报表产品分类
function bizSelectWarehouseCategory(multi, code){
    if(multi){
        viewWinEx(g_srv + "?action_code=selectWarehouseCategory&multi=true&wCode=code", 800, 600, 100, 64);
    }
    else{
        viewWinEx(g_srv + "?action_code=selectWarehouseCategory", 800, 600, 100, 64);
    }
}

//提示用语
function bizMessage(action,biz)
{
    if (action == "删除")
        alert("请您先选择"+biz+",再进行"+action+"操作!");
    else    
        alert("请您先选择一个"+biz+",再进行"+action+"操作!");
}
function bizConfirm(action,biz)
{
    return confirm("确定要"+action+"选中的"+biz+"吗?");
}